import request from '@/utils/request'

const api_name = '/admin/product/attrGroup'
import {call} from "@/utils/rpc";
export default {

  getPageList(page, limit, searchObj) {
    searchObj.page = page
    searchObj.limit = limit
    return call("admin/product/attrGroup/list",searchObj)
  },
  getById(id) {
    return call("admin/product/attrGroup/getById",{_id:id})
  },

  save(role) {
    return call("admin/product/attrGroup/add",role)
  },

  updateById(role) {
    return call("admin/product/attrGroup/update",role)
  },
  removeById(id) {
    return call("admin/product/attrGroup/delete",[id])
  },
  removeRows(idList) {
    return call("admin/product/attrGroup/delete",idList)
  },

  findAllList() {
    return call("admin/product/attrGroup/findAll")
  }
}
